<?php
/**
 * The Action Abstract Class
 * 
 * @package Action
 * @author Shuky
 * @since v1.0
 * @version $Id: Action.php 8 2010-04-03 12:11:43Z shuky $
 */
namespace SFramework;

abstract class Action
{
    /**
     * @var SFrame\Request
     */
    public $request = null;
    
    /**
     * @var SFrame\View
     */
    public $view = null;
    
    
    /**
     * 实例化初始设置请求，模板
     */
    public function __construct()
    {
        if (null === $this->request) {
    		$this->request = Request::getInstance();
    	}
    	if (null === $this->view) {
    		$this->view = View::getInstance();
    	}
    }
}